package com.liner.person;

public class Test {
    public static void main(String[] args) {
        Student nyy = new Student("牛爷爷",72,"翻斗花园","大专","6666");
        Student htt = new Student("胡图图",7,"翻斗花园","幼儿园","001");
        Teacher jk = new Teacher("健康哥哥", 32, "汤臣一品", 2000);
        Doctor hd = new Doctor("憨豆", 43, "白金汉宫", "特工");

        jk.sayHi();
        jk.eat();
        hd.sayHi();
        nyy.sayHi();
        htt.sayHi();
        htt.eat();
        nyy.sleep();
        htt.study();
        jk.teach();
        hd.cut();



    }
}

